package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.MessageFeign;


import com.ky.my.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * --- 天道酬勤 ---
 *
 * @author ZhaoTongTong
 * @date 2024/6/17
 * @desc -- 代码敲烂 月薪过万--
 */
@RestController
@RequestMapping("/api/message")
public class MessageController {
    @Autowired
    private MessageFeign messageFeign;
    @RequestMapping("/findAllMassage")
    public R getMassageList() {
        return messageFeign.findAllFollows();
    }


    @RequestMapping("/sendMassage")
    public R sendMassage(@RequestBody Message message) {
        return messageFeign.sendMassage(message);
    }

}
